//
//  ZCStatusPicModel.swift
//  weibo
//
//  Created by Ning Xie on 16/8/13.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class ZCStatusPicModel: NSObject {

    //  配图地址(缩略图)
    var thumbnail_pic: String?

    //  配图地址(中等图)
    var bmiddle_pic: String? {
        
        var bmiddle = self.thumbnail_pic!
        
        let index =  bmiddle.rangeOfString("thumbnail")
        bmiddle.replaceRange(index!, with: "bmiddle")
        
        return bmiddle
    }
    
    //  配图地址(大图)
    var large_pic: String? {
        
        var large = self.thumbnail_pic!
        
        let index =  large.rangeOfString("thumbnail")
        large.replaceRange(index!, with: "large")
        
        return large
    }
    
    
    
    init(dic:[String:AnyObject]){
        super.init()
        
        setValuesForKeysWithDictionary(dic)
        
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
}
